import 'package:flutter_ahj_app/base/basewidget/viewmodel/BaseViewModel.dart';

import 'ForgetPWDModel.dart';
import 'bean/StringData.dart';

class ForgetPWDViewModel extends BaseViewModel<ForgetPWDModel> {
  @override
  ForgetPWDModel get initModel => ForgetPWDModel();

  Stream<StringData> getCodeStream() => model.getCodeStream;

  getCode(String phone) {
    model.getCode(phone);
  }

  Stream<StringData> checkCodeStream() => model.checkCodeStream;

  checkCode(String phone, String code) {
    model.checkCode(phone, code);
  }

  Stream<StringData> resetPwdrStream() => model.resetPwdStream;

  resetPwd(String phone, String token, String pwd) {
    model.resetPwd(phone, token, pwd);
  }
}
